package com.cn.mapper.dao.db5.TechnologicalStandard;

import com.cn.bean.pojo.TechnologicalStandard.GrindingProcessStandardMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GrindingProcessStandardMainDao {
    List<GrindingProcessStandardMain> selectGrindingProcessStandardMain(@Param("page") int page, @Param("limit") int limit, @Param("equipmentStructure") String equipmentStructure, @Param("structureName") String structureName, @Param("name") String name, @Param("standardType") String standardType, @Param("procedures") String procedures);

    List<GrindingProcessStandardMain> selectGrindingProcessStandardMainAll(@Param("page") int page, @Param("limit") int limit, @Param("equipmentStructure") String equipmentStructure, @Param("structureName") String structureName, @Param("name") String name, @Param("standardType") String standardType, @Param("procedures") String procedures);

    int addGrindingProcessStandardMain(@Param("grindingProcessStandardMain") GrindingProcessStandardMain grindingProcessStandardMain);

    int deleteGrindingProcessStandardMain(@Param("id") int id);

    List<GrindingProcessStandardMain> selectGrindingProcessStandardMainId(@Param("id") int id);

    int updateGrindingProcessStandardMain(@Param("grindingProcessStandardMain") GrindingProcessStandardMain grindingProcessStandardMain);

    int updateShGrindingProcessStandardMain(@Param("id") int id, @Param("state") int state, @Param("reviewer") String reviewer, @Param("reviewerID") String reviewerID, @Param("reviewTime") String reviewTime);

    Integer selectShZT(@Param("id") int id);

    List<GrindingProcessStandardMain> selectGmModel(@Param("page") int page, @Param("limit") int limit, @Param("model") String model);


}
